package com.wzy.springbootdemo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class JspController {

    @Value("${student.name}")
    private String name;

    @GetMapping("helloJsp")
    public String helloJsp(Model model){
        model.addAttribute("name",name);
        return "hello";
    }
}
